package com.pro.mapper;

import com.pro.pojo.JsCarousel;
import com.sun.mail.imap.protocol.BODY;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AdvertisementMapper {

    /*
     * create by: 赵自强
     * create time: 2022/1/20 18:46
     * @return com.pro.pojo.JsonData
     * 获取轮播图列表||检索 getRotationCharts JsCarousel jsCarousel
     */
    List<JsCarousel> getRotationCharts(JsCarousel jsCarousel);

    /*
     * create by: 赵自强
     * create time: 2022/1/20 19:22
     * @return com.pro.pojo.JsonData
     * 删除轮播图 delRotationChart Integer carouselId
     */
    Boolean delRotationChart(@Param("carouselId") Integer carouselId);
    /*
     * create by: 赵自强
     * create time: 2022/1/21 19:24
     * @return
     * 编辑轮播图 editRotationChart JsCarousel jsCarousel
     */
    Boolean editRotationChart(JsCarousel jsCarousel);
    /*
     * create by: 赵自强
     * create time: 2022/1/21 20:43
     * @return com.pro.pojo.JsonData
     * 添加轮播图 addAdvertisement JsCarousel jsCarousel
     */
    Boolean addAdvertisement(JsCarousel jsCarousel);


}
